package cn.iocoder.yudao.module.system.controller.admin.menuweixin.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 微信菜单 Response VO")
@Data
@ExcelIgnoreUnannotated
public class MenuWeixinRespVO {

    @Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "14971")
    @ExcelProperty("主键ID")
    private Long id;

    @Schema(description = "父菜单ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "12437")
    @ExcelProperty("父菜单ID")
    private Long parentId;

    @Schema(description = "微信菜单按钮", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @ExcelProperty("微信菜单按钮")
    private String menuName;

    @Schema(description = "权限", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("权限")
    private String permission;

    @Schema(description = "类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("类型")
    private String menuType;

    @Schema(description = "排序", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("排序")
    private Integer sort;

    @Schema(description = "启用", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "启用", converter = DictConvert.class)
    @DictFormat("mqtt_device_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Boolean status;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}